package base;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Slf4j
public class ThreadPoolException {

    private static ExecutorService exec = Executors.newFixedThreadPool(10);

    public static void main(String[] args) {
        exec.submit(() -> {
            try {
                int i = 10 / 0;
                System.out.println("exec" + i);
            } catch (Exception e) {
//                e.printStackTrace();
                log.info("error:{}", e.getMessage());
            }
        });
    }
}
